package com.hsd.whb.repository;

import com.hsd.whb.entity.Device;
import com.hsd.whb.entity.Participants;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ParticipantsRepository extends JpaRepository<Participants, Integer> {

    List<Participants> findByUsernameLikeAndUsernameNotInAndDeleted(
            String username, List<String> usernameList, Integer deleted);

    List<Participants> findByUsernameLikeAndDeleted(String username, Integer deleted);

    List<Participants> findByIdIn(List<Integer> list);

    Participants findByUsername(String username);

    Participants findByWorkNumber(String workNumber);
}
